<%-- 
    Document   : report_list
    Created on : Jan 18, 2012, 4:30:15 PM
    Author     : haqqiem
--%>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<form:form beanclass="ipfms.stripes.maintenance.ReportListActionBean">

    <p></p>
    <div class="subtitle">

        <fieldset class="aras1">
            <legend>LIST OF COMPLAINTS</legend>

            <div class="content" align="center">
                <display:table class="tablecloth" style="width:100%; border:0px;  bordercolor:#BBB;" name="${actionBean.listOfReport}" pagesize="10"
                               cellpadding="0" cellspacing="0" id="line"
                               requestURI="/report_list">
                    <display:column title="No" sortable="true" style="vertical-align:baseline"><div align="center">${line_rowNum}</div></display:column>
                    <display:column title="Property">
                        <a href="${pageContext.request.contextPath}/report_form?details&idBuilding=${line.building.idBuilding}&idReport=${line.idReport}&from=list">
                            ${line.building.buildingName}</a>
                        </display:column>
                        <display:column title="Complaints" property="code.name" style="vertical-align:baseline"/>
                        <display:column title="Reported By" property="infoAudit.dimasukOleh.nama" style="vertical-align:baseline"/>
                        <display:column title="Date"><fmt:formatDate value="${line.infoAudit.tarikhMasuk}" pattern="dd/MM/yyyy hh:mm a"/></display:column>
                        <display:column title="Status">
                            <c:choose>
                                <c:when test="${line.status eq 'A'}">Active</c:when>
                            <c:otherwise>Inactive</c:otherwise></c:choose>
                    </display:column>
                </display:table>
                <div align="left"><font style="font-style: italic;font-size: 10px;">* Click hyperlink to view the details.</font></div>
            </div>
        </fieldset>
    </div>

</form:form>